home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>2</cardCount>
- <cardID>3730</cardID>
- <listID>2066</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>on startUp
- getHomeInfo
- end startUp
-
- on resume
- getHomeInfo
- end resume
-
- on getHomeInfo
- global stacks,applications,documents,userName
- set lockScreen to true
- set lockMessages to true
- push this card
- go to card "User Preferences" of stack "Home"
- put card field "User Name" into userName
- set userLevel to card field "User Level"
- set powerKeys to the hilite of button "Power Keys"
- set blindTyping to the hilite of button "Blind Typing"
- put field "paths" of card "stacks" into stacks
- put field "paths" of card "applications" into applications
- put field "paths" of card "documents" into documents
- pop card
- set lockScreen to false
- set lockMessages to false
- end getHomeInfo
-
- on searchScript pattern,stackName -- search all scripts of a stack
- set lockMessages to true
- if stackName is not empty then go to stack stackName
-
- if the script of this stack contains pattern
- then edit script of this stack
-
- repeat with i = 1 to the number of bkgnds
- go to card 1 of bkgnd i
- if the script of this bkgnd contains pattern
- then edit script of bkgnd
-
- repeat with j = 1 to the number of bkgnd buttons
- if the script of bkgnd button j contains pattern
- then edit script of bkgnd button j
- end repeat
-
- repeat with j = 1 to the number of bkgnd fields
- if the script of bkgnd field j contains pattern
- then edit script of bkgnd field j
- end repeat
-
- end repeat
-
- repeat with i = 1 to the number of cards
- go card i
- if the script of this card contains pattern
- then edit script of this card
-
- repeat with j = 1 to the number of card buttons
- if the script of card button j contains pattern
- then edit script of card button j
- end repeat
-
- repeat with j = 1 to the number of card fields
- if the script of card field j contains pattern
- then edit script of card field j
- end repeat
-
- end repeat
- set lockMessages to false
- end searchScript
-
- on m1
- push this card
- push this card
- answer "Create a temporary holding stack named NEW"¬
- with "Ok"
- domenu "new stack..."
- pop card
- end m1
-
- on m2
- set lockscreen to true
- go next card
- put the short id of this card into stop
- set lockscreen to false
- pop card
- set lockmessages to true
- repeat until the short id of this card is stop
- push this card
- domenu "copy card"
- go to last card of "new"
- domenu "paste card"
- pop card
- go next card
- end repeat
- go to first card of "new"
- domenu "delete card"
- set lockmessages to false
- domenu "compact stack"
- end m2
-
- --function clickline
- return ((item 2 of the clickloc - item 2 of the rect of the target)¬
- div the textheight of the target) + 1
- end clickline
-
- --on openfield
- put clickline() into msg
- pass openfield
- end openfield
-
- on domenu var
- if var is "help" then
- go to card random(the number of cards)
- end if
- pass domenu
- end domenu
-
- on cantunderstand
- put "Speak english, I don't understand you!"
- end cantunderstand
-
- </script>
- <background id="2710" file="background_2710.xml" name="boo" />
- <background id="3055" file="background_3055.xml" name="" />
- <card id="3730" file="card_3730.xml" marked="false" name="" owner="2710" />
- <card id="4138" file="card_4138.xml" marked="false" name="" owner="3055" />
- </stack>
-